﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;

namespace ShowScreen
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Form1());
        }
    }
    public class global
    {
        public static Boolean Debug = false;
        public static int tag = 0;
        public static string msg = "说明";
        public static bool UserMode = true;
        public static string NetPath = @"\\10.1.131.192\SharedDocs\showscreen";
        public static string User = "admin";
        public static string Pwd = "admin";
        public static string LocalPath = @".\sw\Showscreen";
        public static NetLocalPath PublicShare;
        public static string PublicLink;
        public static void SetValue(globalsave gs)
        {
            Debug = gs.Debug;
            tag = gs.tag;
            msg = gs.msg;
            NetPath = gs.NetPath;
            User = gs.User;
            Pwd = gs.Pwd;
            LocalPath = gs.LocalPath;
            if (gs.PublicShare != null)
            {
                PublicShare = gs.PublicShare;
            }
            if (gs.PublicLink != null)
            {
                PublicLink = gs.PublicLink;
            }
        }
    }
    public class globalsave
    {
        public Boolean Debug;
        public int tag;
        public string msg;
        public string NetPath;
        public string User;
        public string Pwd;
        public string LocalPath;
        public string ProgramerCode;
        public NetLocalPath PublicShare;
        public string PublicLink;
    }
    public class NetLocalPath
    {
        public string NetPath;
        public string LocalPath;
    }
    //public class NetPathLink
    //{
    //    public NetPathLink()
    //    {
    //        list = new Dictionary<string, string>();
    //        list["PPT"] = "\\\\10.1.131.9\\Users\\PublicLink\\2019一轮复习\\PPT";
    //        list["微课"] = "\\\\10.1.131.9\\Users\\PublicLink\\2019一轮复习\\微课";
    //    }
    //    public Dictionary<string, string> list;
    //}
}
